home *** CD-ROM | disk | FTP | other *** search
- ::
- :: Part of JDEX - Java Development Environment using Explorer
- ::
- :: Copyright (c) 1998, by J. Brian Coyle
- :: mailto:brianc@magicnet.net
- :: http://www.magicnet.net/~brianc
- ::
- :: Refer to JDEX\copyright.txt for additional information.
- ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- ::
- :: rmvpath.bat 03/20/98
- ::
- :: removes the path from a filename
- ::
- :: REQUIRES: setfn.bat
- ::
- if "%1"=="" for %%C in (echo goto:end) do %C Usage is %0 filename
- dir /b %1 > %temp%\tempfile.txt
- copy /b %jdexpath%\setfn.bat+%temp%\tempfile.txt %temp%\tempfile.bat > nul
- call %temp%\tempfile.bat
- del %temp%\tempfile.??t
- :: the filename (without a path) is now in %filename%
- :end